var serveIp = "192.168.3.71";
function cRequst(obj, ctx) {
    var __success = obj.success,
        __fail = obj.fail,
        __complete = obj.complete;

    obj.success = function (res) {
        //handle data or action
        var arr = [].slice.call(arguments);
        var firstItem = arr.shift();
        arr.unshift(firstItem.data);

        typeof __success === 'function' && __success.apply(ctx, [res.data]);
    }
    obj.fail = function () {
        //handle data or action
        typeof __fail === 'function' && __fail.apply(ctx, arguments);
    }
    obj.complete = function () {
        //handle data or action
        typeof __complete === 'function' && __complete.apply(ctx, arguments);
    }
    wx.request(obj);
}
module.exports.cRequst = cRequst;
exports.serveIp = serveIp;